package com.czp.common.mapper.impl;

import java.util.List;

import com.czp.audit.model.AuditType;
import com.czp.common.mapper.ICommonMapper;
import com.czp.dict.model.Dict;
import com.czp.framework.mapper.BaseMapperSupport;

/**
 * 【环 境】：J2SE 1.7
 * @author   柴志鹏	CHAIZP@GMAIL.COM
 * @version  version 1.0
 * @since    2014-8-12
 */
public class CommonMapperImpl extends BaseMapperSupport implements ICommonMapper {

	public List<Dict> queryDictByCode(String code) throws Exception {
		return this.getSqlSession().selectList(
				"com.czp.common.mapper.ICommonMapper.queryDictByCode", code);
	}
	
	public List<AuditType> queryAuditTypeInfo(String type) throws Exception {
		return getSqlSession().selectList(
				"com.czp.common.mapper.ICommonMapper.queryAuditType", type);
	}

}
